package DBLayer;

import ModelLayer.*;

import java.util.ArrayList;
/**
 * IFDBSalesOrder.java
 * @author Brian Lassen
 * @version 22. Marts 2012
 */
public interface IFDBSalesOrder {
	public ArrayList<SalesOrder> getAllSalesOrders(boolean retriveAssociation);
	public SalesOrder findSalesOrder(String name, boolean retriveAssociation);
	public SalesOrder searchSalesOrderId(int id, boolean retriveAssociation);
	public SalesOrder searchSalesOrderInvoiceno(int invoicenr, boolean retriveAssociation);
	public int createSalesOrder(SalesOrder sorder);
	public int updateSalesOrder(SalesOrder sorder);
	public int deleteSalesOrder(int id);
}
